﻿@model List<LCTMoodle.Models.ViewModels.QuyenViewModel>

<ul>
    @for (int i = 0; i < Model.Count; i++)
    {
        <li>
            <ul>
                <li>
                    <input id="permit-function-@Model[i].ma" type="checkbox" value="@Model[i].ma" hidden="hidden" />
                    <label for="permit-function-@Model[i].ma">
                        <i class="switch"></i>
                        @Model[i].tenQuyen
                    </label>
                </li>
                @if (++i < Model.Count)
                {
                    <li>
                        <input id="permit-function-@Model[i].ma" type="checkbox" value="@Model[i].ma" hidden="hidden" />
                        <label for="permit-function-@Model[i].ma">
                            <i class="switch"></i>
                            @Model[i].tenQuyen
                        </label>
                    </li>
                }
            </ul>
        </li>        
    }
</ul>